package cn.softcits.thread.assignment;

/**
 * @author Rocket
 * @version 10.0.1
 * @date 2021-07-18 9:29 AM
 */
public class Thread01 extends Thread {


    private String whoAmI;
    private int delay;

    public Thread01(String whoAmI, int delay) {
        this.whoAmI = whoAmI;
        this.delay = delay;
    }
    @Override
    public void run() {
        try {
            Thread.sleep(delay);
        } catch (Exception e) {

        }

       System.out.println("Current Thread is : " + whoAmI + " , delay = " + this.delay);
    }
}
